package com.weibo.dao;

import java.util.List;

import com.weibo.pojo.Tcomment;
import com.weibo.pojo.Tweibo;

/**
 * one inerface declare weibo operation
 * @author vorce
 *
 */
public interface IWeiboDao {

	public List<Tweibo> getHomeWeiboList(Integer userId) throws Exception;

	public void saveWeibo(Tweibo weibo) throws Exception;

	public List<Tcomment> getCommentListByWeibo(Integer weiboId) throws Exception;

	/**
	 * get Tweibo by its id
	 * @param weiboId
	 * @return
	 */
	public Tweibo getWeiboById(Integer weiboId);

	/**
	 * delete one Tweibo
	 * @param weibo
	 */
	public void deleteWeibo(Tweibo weibo);

}
